/*
  * File:		pbd_linux.h
  * Purpose:	Provide some linux-dependent functions
  * Author:	yoyo
  * Date:	2011-6-25
  */

#ifndef _PBD_LINUX_H
#define _PBD_LINUX_H

#include "pbd_type.h"

/*
  * Get devices from all registered network devices, and return the first legal
  * one.
  * Return device name, otherwise reutrn NULL
  */
char *pbd_get_device();

/*
  * Get hardware address of device named 'device'. 
  * @device - device name
  * Return device hardware address if success, otherwise return NULL
  */
uint8 *pbd_get_hwaddr(char *device);


#endif

